package com.example.orderform.otuercall;

import com.example.orderform.return_data.Mall_Data;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "GOODSSERVICE")

public interface GoodsService {
    @GetMapping("/upxl")
    Mall_Data upxl(@RequestParam("spid") int spid,
                   @RequestParam("id") int id
    );

    @GetMapping("/upkc")
     Mall_Data upkc(@RequestParam("spid") int spid,
                          @RequestParam("specifications") String specifications,
                          @RequestParam("attribute") String attribute,
                          @RequestParam("commodity_id") int commodity_id);

}
